package com.air.common.util;

import java.util.ArrayList;
import java.util.List;

public class QueryCondition4Update extends QueryCondition{
	
	private List<UpdateFieldExpression> updateFields = new ArrayList<UpdateFieldExpression>();

	public List<UpdateFieldExpression> getUpdateFields() {
		return updateFields;
	}
	
	public void addUpdateFieldExpression(String propertyName,String propertyValue){
		UpdateFieldExpression expression = new UpdateFieldExpression();
		expression.setPropertyName(propertyName);
		expression.setPropertyValue(propertyValue);
		updateFields.add(expression);
	}
	
	public void addUpdateFieldExpression(String propertyName,Integer propertyValue){
		this.addUpdateFieldExpression(propertyName,propertyValue+"");
	}
	
}
